package com.itany.corejava.day07;

public class Bird extends Animal {
    private String color;

    public Bird() {
    }

    public Bird(String name, int age, String color) {
        super(name, age);
        this.color = color;
    }


    public void move(){
        System.out.println("飞");
    }

    public void sing(){
        System.out.println("sing");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
